﻿using QuanLyChoVayCaNhan.Classes;
using QuanLyChoVayCaNhan.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuanLyChoVayCaNhan.Forms
{
    public partial class ViewToTrinhTinDung : Form
    {
        private HoSo data = null;
        public ViewToTrinhTinDung()
        {
            InitializeComponent();
            this.data = (HoSo)WindowsManager.GetInstance().TabThamDinhTinDung.SelectedItem;
        }
        // dong
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        // cap nhat
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();

        }
        // load du lieu
        private void ViewToTrinhTinDung_Load(object sender, EventArgs e)
        {
            this.hoSoBindingSource.DataSource = this.data;
        }

        public HoSo WindowManager { get; set; }
    }
}
